package com.sinocare.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * scc_drugstore(连锁药店表)实体类
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("scc_drugstore")//当前实现类与数据库哪张表封装
public class Store implements Serializable {
    private static final long serialVersionUID = 6160080223554292679L;

    @TableId(value = "store_id",type = IdType.AUTO)//标识列
    private Integer storeId;               //药店ID
    private String storeName;             //药店名
    private String storeCode;               //药店编号
    private String customerCode;               //客户编号
    private String provinceCode;               //省编码
    private String province;               //省
    private String cityCode;               //市编码
    private String city;               //市
    private String countyCode;               //区县编码
    private String county;               //区/县
    private String addressDetail;               //详细地址
    private String name;               //姓名(联系人)
    private String phone;               //手机号(联系电话)

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField("create_time")//表示当前属性名对应的字段名
    private Date createTime;                                //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField("update_time")//表示当前属性名对应的字段名
    private Date updateTime;                                //修改时间

}
